package com.smart.home.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@ApiModel("用户信息")
public class Users {

    @ApiModelProperty("自增主键")
    private Long id;

    @ApiModelProperty("全局唯一ID")
    private String uuid;

    @ApiModelProperty("状态 (0-禁用 1-启用)")
    private Byte status;

    @ApiModelProperty("创建时间")
    private LocalDateTime createdAt;

    @ApiModelProperty("更新时间")
    private LocalDateTime updatedAt;


//在dto里面出现过了
    @ApiModelProperty("用户名")
    private String username;

    @ApiModelProperty("argon2加密密码")
    private String password;

    @ApiModelProperty("邮箱")
    private String email;

    @ApiModelProperty("手机号")
    private String phone;
}
